﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CodeBuilder2.DBM;
using System.Data.SqlClient;

namespace CodeBuilder2.DAL.Schema
{
    class ServerDAL
    {
        internal DataTable GetSysDataBases(string serverName)
        {
            DBManager.TSInfo = DBManager.ConnectedServers[serverName];
            DataTable dt = null;
            using (SqlConnection conn = DBManager.SqlConn)
            {
                conn.Open();
                dt = conn.GetSchema("databases");
            }
            return dt;
        }
    }
}
